package top.lyc829.zzl_android.ui.team.my_team.people;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

import okhttp3.internal.Util;
import top.lyc829.zzl_android.R;
import top.lyc829.zzl_android.logic.bean.UserInfoBean;
import top.lyc829.zzl_android.logic.util.Utils;

/**
 * @Author lyc
 * @create 2021-05-08 16:30
 */
public class PeopleAdapter extends BaseQuickAdapter<UserInfoBean, BaseViewHolder> {

    public PeopleAdapter() {
        super(R.layout.people_in_team_item);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, UserInfoBean userInfoBean) {
        baseViewHolder.setText(R.id.people_in_team_user_name, userInfoBean.getNickname());
        Glide.with(getContext())
                .load(userInfoBean.getAvatarUrl())
                .into((ImageView) baseViewHolder.getView(R.id.people_in_team_user_avatar));
    }
}
